from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE "live_data" RENAME COLUMN "sec_id" TO "sec_uid";"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE "live_data" RENAME COLUMN "sec_uid" TO "sec_id";"""
